home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.0 KB | 27 lines | [TEXT/GEOL] |
- Item 1486266 23-Feb-88 12:59
-
- From: X0501 MacApp Developers Assoc, C. Nelson
-
- To: D0756 Tradenet, Dev, Adam Wildavsky
-
- cc: MACAPP$ MacApp Interest List
-
- Sub: Re:MDEF&OPCODE
-
- Adam,
-
- oops, As for you question about the JMP record and OPCODE $4EF9, if you read IM
- volI pg 362, MDEFs are code which is executed. In order to get back into
- MacApp, Larry generates, at run time, a handle to a small piece of glue code
- $4EF9 (JMP IMMEDIATE using the next LONG WORD (@MenuDefproc) as the address to
- which you are supposed to JMP).The handle is stored in a global variable
- gCustDefproc. When IMenu is called, it installs (m^^.menuProc :=gCustDefproc;)
- in the procdef field for our menu. When the Mac sees our menu is selected it
- calls our MDEF. The MDEF JMPs to MenuDefProc which does the dispatching to the
- appropriate TMENU Menu Object.
-
- (Is this clear? Did I get it right Larry?)
-
- ....Carl
-
-